<?



	$_SESSION['url'] = getURL();

	$act = $_GET['act'];

	//HOME TOP LINK TO BACK

	$tid = intval($_GET['tid']);

	if(!isset($tid)){reHome($urlHome);}

	//

	

	$rs = $db->query("SELECT * FROM ".$prefix."tuyendung WHERE td_id = '".$tid."' AND td_hienthi = 1");

	$row = $db->fetch_array($rs);

	if($db->num_rows($rs) == 0){ reHome($urlHome);}

	//

	$cid = $row[td_loaituyendung];

	$HomeLink = "<a href=\"".$root."/trang-chu/\">Trang chủ</a> ";

	if(isset($cid)){

		$rs = $db->query("SELECT * FROM ".$prefix."loaituyendung WHERE ltd_id = '".$cid."' AND ltd_hienthi = 1");

		if($db->num_rows($rs) != 0){

			$row = $db->fetch_array($rs);

				$ltd_id_cha = $row[ltd_id_cha];

				$ltd_name = stripslashes($row[ltd_ten]);

				

				$rs2 = $db->query("SELECT * FROM ".$prefix."loaituyendung WHERE ltd_id = '".$ltd_id_cha."' AND ltd_hienthi = 1");

				$row2 = $db->fetch_array($rs2);

				$ltd_id2 = $row2[ltd_id];

				$ltd_name2 = stripslashes($row2[ltd_ten]);

				

				$HomeLink .= "&raquo; <a class=\"linkPath\" href=\"".$root."/danh-muc-tuyen-dung/".$ltd_id2."/".$myString->vietdecode($ltd_name2)."\">".$ltd_name2."</a> &raquo; <a class=\"linkPath\" href=\"".$root."/danh-muc-tuyen-dung/".$cid."/".$myString->vietdecode($ltd_name)."\">".$ltd_name."</a> ";

			

		}else{reHome($urlHome);}

	}else{reHome($urlHome);}

	

	$HomeLink .= "&raquo; Chi tiết tuyển dụng";

	

?>

<div id="linkPath">

<div class="linkPath">

    <div class="corner-round-01-top-right">

        <div class="corner-round-01-top-left">



            <div class="corner-round-01-top-bg"></div>

        </div>

    </div>

    <div class="corner-round-01-body">    

        <span style="float: left;"><?=$HomeLink?></span>



        <span style="float: right;"><a title="Quay lại trang trước" class="link-back" href="javascript:void(0);" onclick="javascript:history.go(-1);">Quay lại</a></span>

        <div style="clear: both;"></div>

    </div>

    <div class="corner-round-01-bottom-right">

        <div class="corner-round-01-bottom-left">

            <div class="corner-round-01-bottom-bg"></div>

        </div>

    </div>   



</div>    

    </div>

    <!-- Main Page-Content { -->    

    <div id="page-content">      

        <div id="ctl00_idMainHolder_idProductPanel">



<?



	////UPDATE SO LAN XEM

		TuyenDung_updateSoLanXem($tid);

		

	//UPDATE LAN XEM MOI NHAT

		TuyenDung_updateXemGanNhat($tid);

	//

	$rs = $db->query("SELECT * FROM ".$prefix."tuyendung WHERE td_id = '".$tid."' AND td_hienthi = 1");

	$row = $db->fetch_array($rs);

	

	$td_id = $row[td_id];

	$td_loaituyendung = $row[td_loaituyendung];

	$td_tieude = $myString->unQuote(stripslashes($row[td_tieude]));

	$td_mota = $myString->unQuote(stripslashes($row[td_mota]));

	$td_maso = $row[td_maso];

	$td_anhthehien = $PathFile . $row[td_anhthehien];

	$td_mucluong = $row[td_mucluong];

	$td_mucluong_from = $row[td_mucluong_from];

	$td_mucluong_to = $row[td_mucluong_to];

	$td_loaitien = loadLoaiTien($row[td_loaitien]);

	$td_nguoidang = $row[td_nguoidang];

	$td_ten_nguoidang = tenNguoiDung($td_nguoidang);

	$td_ngaydang = format_date($row[td_ngaydang]);

	$td_thoigiandang = $row[td_thoigiandang];

	$td_quocgia = layQuocGia($row[td_quocgia]);

	$td_tinhthanh = layTinhThanh($row[td_tinhthanh]);

	$td_loaihinhcongviec = $row[td_loaihinhcongviec];

	$td_capbac = $row[td_capbac];

	$td_sonamkinhnghiem =  $row[td_sonamkinhnghiem];

	$td_capbactoithieu = $row[td_capbactoithieu];

	$td_bangcaptoithieu = $row[td_bangcaptoithieu];

	$td_ngoaingu = $myString->unQuote(stripslashes($row[td_ngoaingu]));

	$td_tailieuguikem = $PathFileDoc . $row[td_tailieuguikem];

	$td_chitiet = $myString->unQuote(stripslashes($row[td_chitiet]));

	$td_solanxem = $row[td_solanxem];

	$td_xemgannhat = format_date_time($row[td_xemgannhat]); 

	$td_trangthai = $row[td_trangthai];

	$td_hienthi = $row[td_hienthi];

?>	

                

<div id="product-summary">    

    <div class="corner-round-07-top-right">

        <div class="corner-round-07-top-left">

            <div class="corner-round-07-top-bg">

                <p>

                    Chi tiết tuyển dụng

                </p>



            </div>

        </div>

    </div>            

    <div class="corner-round-07-body">     

        <div id="panel-left">

            <div class="content"> 

                <div class="product-picture">

                    <p style="text-align:center;vertical-align:middle;margin-left:15px;margin-bottom:10px;">

                        <img src="<?=$root?>/<?=$td_anhthehien?>" alt="<?=$td_tieude?>" width="120" onerror="this.src='<?=$root?>/themes/images/noimg.jpg';"/>

                    </p>



                </div> 

                <div class="product-info">

                    <h1 class="product-name"><?=$td_tieude?></h1>

                    <p class="product-summary2" style="font-size:8pt;margin-bottom:10px;margin-top:0px;"><?=$td_mota?>

                    </p>

                    

                        <p><label>Kiểu :</label> &nbsp;<span class="product-price"><?

						if($td_trangthai == 0){echo "Việc tìm người";}else{echo "Người tìm việc";}

						?></span></p>

                        

                    <p><label>Khu vực :</label> &nbsp;<?=$td_tinhthanh?></p> 

                    <p><label>Ngày đăng :</label> &nbsp;<span class="product-date"><?=$td_ngaydang?></span></p>                      

                    <div class="product-paymet">                        

                        <p style="margin-left:0px; line-height:2;">



                            <label style="float:none;margin-left:0px;">Số lần xem :</label>

                            &nbsp;<?=$td_solanxem?>

							<br />

							<label style="float:none;margin-left:0px;">Xem gần nhất :</label>

                            &nbsp;<?=$td_xemgannhat?>

							<br />

							<label style="float:none;margin-left:0px;">Thời gian đăng :</label>

                            &nbsp;<?=$td_thoigiandang?> ngày

                        </p>                        

                    </div>

                

                </div>           

                <div class="clearBoth" style="margin-top:5px;"></div>             

            </div>     

               

            <div style="text-align:left;margin-left:10px;width:650px;font-size:10pt;">                

            <?

				if($_SESSION['is_login'] == true && $_SESSION['uid'] == $td_nguoidang){

			?>

				<a class="link-edit" href="<?=$root?>/sua-tin-tuyen-dung/<?=$td_id?>/<?=$myString->vietdecode($td_tieude)?>">Cập nhật</a>

                    |

                    <a class="link-delete" href="javascript:;" onclick="javascript:return confirmDelete('<?=$root?>/action.php?act=del_tintuyendung&id=<?=$td_id?>&u_id=<?=$td_nguoidang?>');">Xóa</a>

			<? }else{ ?>

                    <a class="link-alert" title="Báo cho quản trị về nội dung thông tin." href="<?=$root?>/gop-y/">Báo quản trị</a>&nbsp;               

            <? } ?>    

            </div>



            

            

            <br style="line-height:1px;font-size:0px;clear:both;" />

        </div>  

        

        <div id="panel-right">        

            

    <div id="seller-summary" style="height:auto;overflow:hidden;">

        

		<!-- SELLER INFOMATION -->

		<?

		

			$rs2 = $db->query("SELECT * FROM ".$prefix."nguoidung WHERE u_id = '".$td_nguoidang."' AND u_banned = 1");	

			$row2 = $db->fetch_array($rs2);

			$u_id = $row2[u_id];

			$u_capdo = $row2[u_capdo];

			$u_name = stripslashes($row2[u_name]);

			$u_tenshop = stripslashes($row2[u_tenshop]);

			$u_avatar = $PathThumbFile . $row2[u_avatar];

			$u_tinhthanh = layTinhThanh($row2[u_tinhthanh]);

			$u_dienthoaicodinh = stripslashes($row2[u_dienthoaicodinh]);

			$u_dienthoaididong = stripslashes($row2[u_dienthoaididong]);

			$u_nickchat = loadNickChat(0,$row2[u_nickchat]);

			$u_chuky = $myString->unQuote(stripslashes($row2[u_chuky]));

			

		?>

		<div class="content" style="margin-top:15px;height:auto;overflow:hidden;">

			   <table width="100%" cellpadding="5" cellspacing="0" border="0">

			   		<tr>

						<td width="15%">

							<p style="padding-left:5px;">                     

								<a href="<?=$root?>/shop-<?=$u_id?>/<?=$u_name?>" title="<?=$u_name?>" >                   

									<img alt="<?=$u_name?>" width="60px" src="<?=$root?>/<?=$u_avatar?>" onerror="this.src='<?=$root?>/themes/images/noavatar.jpg';"/>

								</a>                    

							</p>

			

							<p style="padding-left:5px;">

								<a class="seller" title="<?=$u_name?>" href="<?=$root?>/shop-<?=$u_id?>/<?=$u_name?>"><?=banned($u_id,$myString->cutString2($u_name,6));?></a>                 

							</p>

					  </td>

						<td width="85%" valign="top" style="padding-left:5px;">

							<p>

								<span class="seller-fullname"><a href="<?=$root?>/shop-<?=$u_id?>/<?=$u_name?>"><?=$u_tenshop?></a></span>                              

							</p>  

							

							<p>

								<span class="seller-level1">Số sản phẩm : <?=loadSoSanPhamTheoUser($u_id)?></span>

				

							</p>

				 

							<p>

								<span><label>Khu vực</label>: <?=$u_tinhthanh?></span>

							</p>

					  </td>

					</tr>

			   </table>

          

        </div>  

<!-- SELLER INFOMATION -->



        <div class="clearBoth" style="border-top:solid 1px #CCCCCC;margin-bottom:5px;"></div>                   

        <div style="width:auto;margin-left:5px;margin-right:5px;">  

            <ul class="user-contactInfo">                                

                <li><span class="seller-phone" style="line-height:18px;">

			<? if($u_dienthoaicodinh != ""){ ?>	

				<img style="vertical-align: bottom;" src="<?=$root?>/themes/images/form/phone/desk-phone.jpg"> <?=$u_dienthoaicodinh?> - 

			<? } if($u_dienthoaididong != ""){ ?>

				<img style="vertical-align: bottom;" src="<?=$root?>/themes/images/form/phone/mobi-phone.jpg"> <?=$u_dienthoaididong?>

				<? } ?>

				</span></li>                            

            </ul>           

            <ul class="user-function">              

                <li><a href="<?=$root?>/shop-<?=$u_id?>/<?=$u_name?>"><img src="<?=$root?>/themes/images/thanhtoan.gif" alt="Thông tin thanh toán" /></a></li>             

                <li><span><a href="<?=$root?>/gui-tin-nhan/<?=$u_name?>">Gởi tin nhắn riêng</a></span></li>



                <li><span><a href="<?=$root?>/san-pham/<?=$u_id?>/<?=$u_name?>">Xem tất cả sản phẩm</a></span></li>

                

                

                    <li><span><a href="<?=$root?>/ket-ban/<?=$u_id?>/<?=$u_name?>">Kết bạn</a></span></li>                

                

              

            </ul> 

            <ul class="user-chat">

                <li><label style="float:none;">Nick Chat:</label> </li><li style="padding-left:5px;"><img style="vertical-align: middle;" src="http://mail.opi.yahoo.com/online?u=<?=$u_nickchat?>&m=g&t=5">  <a href="ymsgr:sendim?<?=$u_nickchat?>"><?=$u_nickchat?></a></li>

            </ul>  

        </div>



        <br style="line-height:1px;font-size:0px;" />

    </div>



        </div>

        

        <div class="clearBoth"></div>

    </div>              

    <div class="corner-round-07-bottom-right">

        <div class="corner-round-07-bottom-left">

            <div class="corner-round-07-bottom-bg"></div>

        </div>



    </div>

</div>    





<div id="page-product-lpane2"> 

                

                

<div id="product-detail">

    <div class="header" style="height:27px;padding:12px 0px 5px 10px;">Chi tiết tuyển dụng</div>

    <div class="line"></div>

    <div class="product-detail-inner" style="height:auto;overflow:hidden;">



        <div class="corner-round-02-top-right"><div class="corner-round-02-top-left"><div class="corner-round-02-top-bg"></div></div></div>

        <div class="corner-round-02-body product-detail-description" style="height:auto;overflow:hidden; width:958px;">  

		<!-- CHI TIET -->

		

		<table cellpadding="0" cellspacing="0" border="0" width="100%">

			<tbody>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Mã số công việc:</td>

			<td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=$td_maso?></td>

			</tr>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Ngành nghề:</td>

		

			<td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=tenChungLoaiTuyenDung($td_id)?></td>

			</tr>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Loại hình công việc:</td>

		

			<td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=$arrLoaiHinhCongViec[$td_loaihinhcongviec]?></td>

			</tr>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Cấp bậc:</td>

			<td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=$arrCapBac[$td_capbac]?></td>

			</tr>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Mức lương:</td>

		

			<td style="padding-top: 10px; color: rgb(102, 102, 102);">

			<?

				if($td_mucluong == 0){

			?>

			Từ <?=$td_mucluong_from?> <?=$td_loaitien?> đến <?=$td_mucluong_to?> <?=$td_loaitien?> 

			

			<? }else{  echo $arrMucLuong[$td_mucluong];}?>

			</td>

			</tr>	

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Yêu cầu công việc:</td>

			<td>

			<table border="0" cellpadding="0" cellspacing="0" height="5" width="100%">

			<tbody><tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" width="140">Số năm kinh nghiệm: </td><td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=$td_sonamkinhnghiem?> năm</td></tr>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);">Cấp bậc tối thiểu: </td><td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=$arrCapBac[$td_capbactoithieu]?></td></tr>

		

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);">Bằng cấp tối thiểu: </td><td style="padding-top: 10px; color: rgb(102, 102, 102);"><?=$arrBangCap[$td_bangcaptoithieu]?></td></tr>

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" valign="top">Ngoại ngữ: </td><td style="padding-top: 10px; color: rgb(102, 102, 102);">

			<?=$td_ngoaingu?>	</td></tr>

			</tbody></table>

		

			</td>

			</tr>	

			<tr><td style="padding-top: 10px; padding-right: 10px; color: rgb(51, 51, 51);" align="right" valign="top" width="200">Tài liệu gửi kèm:</td>

			<td style="padding-top: 10px; color: rgb(102, 102, 102);">

			<?

				if($td_tailieuguikem != ""){

			?>

			<a target="_blank" href="<?=$td_tailieuguikem?>" style="text-decoration:none;"><img src="<?=$root?>/themes/images/icon/download.gif" border="0" /> tải về </a>

			<? }else{ echo "Không";}?>

			</td>

			</tr>		

			</tbody>

		</table>

		

		<!-- CHI TIET -->

         

    

        </div>       

        <div class="corner-round-02-bottom-right"><div class="corner-round-02-bottom-left"><div class="corner-round-02-bottom-bg"></div></div></div>

    </div>

</div>





            </div>         

            

        

</div>    

                  

    </div>

    <div style="clear:both;"></div>





              

<div id="page-product-lpane2"> 

                

                

<div id="product-detail">

    <div class="header" style="height:27px;padding:12px 0px 5px 10px;">Mô tả chi tiết</div>

    <div class="line"></div>

    <div class="product-detail-inner" style="height:auto;overflow:hidden;">



        <div class="corner-round-02-top-right"><div class="corner-round-02-top-left"><div class="corner-round-02-top-bg"></div></div></div>

        <div class="corner-round-02-body product-detail-description" style="height:auto;overflow:hidden; width:958px;">  

          <?=$td_chitiet?>



           <div class="signature" style="border-top:dasded 1px #CCCCCC;margin-top:35px;">

                <p style="margin:0px;margin-top:5px;">

                    <?=$u_chuky?>

                </p>

           </div>      

           

             <div style="text-align:right;">

                <a href="javascript:void(0)" style="font-style:normal;font-size:8pt;">

             <img src="<?=$root?>/themes/images/home/btnUp.jpg" style="border:0;" alt="Up" title="Up sản phẩm" />

                </a>

             </div>        

                      

           <div class="date" style="margin-top:5px;font-style:normal;font-size:8pt;text-align:right;">

            <?

				if($_SESSION['is_login'] == true && $_SESSION['uid'] == $td_nguoidang){

			?>

				<a class="link-edit" href="<?=$root?>/sua-tin-tuyen-dung/<?=$td_id?>/<?=$myString->vietdecode($td_tieude)?>">Cập nhật</a>

                    |

                    <a class="link-delete" href="javascript:;" onclick="javascript:return confirmDelete('<?=$root?>/action.php?act=del_tintuyendung&id=<?=$td_id?>&u_id=<?=$td_nguoidang?>');">Xóa</a>

			<? }else{ ?>

                    <a class="link-alert" title="Báo cho quản trị về nội dung thông tin." href="<?=$root?>/gop-y/">Báo quản trị</a>&nbsp;               

            <? } ?> 

                    

     	   </div>                          

        </div>       

        <div class="corner-round-02-bottom-right"><div class="corner-round-02-bottom-left"><div class="corner-round-02-bottom-bg"></div></div></div>

    </div>

</div>





            </div>         

            

        

</div>    

                  

    </div>

    <div style="clear:both;"></div>    

   

   <?

    file_exist('includes/tuyendung/inc_tincungnguoidang.php');

   	include('includes/tuyendung/inc_tincungnguoidang.php');

   ?>

   

    <!-- } Main Page-Content -->  

            

